/**
 * 
 */
package metalink.admin;

import model.admin.HostelMo;

import com.opensymphony.xwork2.ActionSupport;

/**
 * @author Sony
 *
 */
public class DeleteHostel extends ActionSupport{
	int[] residential_id;
	public String execute() {
		HostelMo mo = new HostelMo();
		try {
			for (int single_residential_id : residential_id) {
			mo.deleteHostel(single_residential_id);
			}
		} catch (Exception e) {
			addActionError(e.getMessage());
		}
		return SUCCESS;
	}
	
	public int[] getResidential_id() {
		return residential_id;
	}
	public void setResidential_id(int[] residential_id) {
		this.residential_id = residential_id;
	}
	
}
